<% content_for :javascripts, javascript_include_tag("kuztuscms/codemirror-compressed") %>
<% content_for :stylesheets, stylesheet_link_tag("kuztuscms/codemirror", :media => "all") %>

<script type="text/javascript">
  $(document).ready(function(){
    var myCodeMirror = CodeMirror.fromTextArea(
      document.getElementById('<%= textarea_id %>'),
      {
        lineNumbers: true,
        matchBrackets: true,
        mode: "application/x-ejs",
        indentUnit: 2,
        indentWithTabs: false,
        enterMode: "keep",
        tabMode: "shift"
      }
    );
  });
</script>

